package com.daidai.testservice

import android.util.Log
import java.lang.RuntimeException
object AppConfig{
    const val isDebug = true
}
object MyLog{

    @JvmStatic
    fun elog(str:String){
        if (AppConfig.isDebug){
            Log.e("MyLog",str)
        }
    }

    @JvmStatic
    fun info(str:String){
        if (AppConfig.isDebug){
            Log.e("MyLog-Info:",str)
        }
    }

    @JvmStatic
    fun debugThrow(str:String){
        if (AppConfig.isDebug){
            throw RuntimeException(str)
        }
    }

    fun error(str:String){
        Log.e("MyLog-Error",str)
    }

}